<!-- inc:header -->
<style type="text/css">
body{margin:0px;padding:0px;background: #124F62;}
a{font-size:12px;text-decoration:none;color:#FFF;blr:expression(this.onFocus=this.blur());}
a:hover{font-size:12px;text-decoration:underline;}
a:focus{-moz-outline-style: none;}
.logo-menu{padding-top:3px;border-bottom:1px #047A9E solid;background:#0C5870;}
.bottom-line{height:5px;border-bottom:1px #047A9E solid;}
.menub{border-left:1px #047A9E solid;border-right:1px #047A9E solid;border-top:1px #047A9E solid;padding-left:5px;padding-right:5px;}
.menuh{border-left:1px #06B8EC solid;border-right:1px #06B8EC solid;border-top:1px #06B8EC solid;padding-left:5px;padding-right:5px;color:red;background:#D1F4FE}
.menuh a{color:red;}
</style>
<div class="logo-menu">
<table cellpadding="0" cellspacing="0">
<tr>
	<td><img src="images/title-logo.gif" border="0"></td>
	<td>&nbsp; &nbsp; &#8251; 您好，{:$_SESSION[admin_realname]}&nbsp;</td>
	<!-- $rslist AS $key=>$value -->
	<td width="3"></td>
	<td class="{:$key<1?'menuh':'menub'}" id="menu_{:$key}">&nbsp;<a href="javascript:{:$value['onclick']};void(0);">{:$value[title]}</a>&nbsp;</td>
	<!-- end -->
	<td width="3"></td>
	<td>
		<select onchange="change_langid(this.value)">
		<!-- $langlist AS $key=>$value -->
		<option value="{:$value[langid]}"{if($_SESSION[sys_lang_id] == $value[langid])} selected{end}>{:$value[title]}<!-- if(!$value[status]) -->（前台禁用）<!-- end --></option>
		<!-- end -->
		</select>
	</td>
</tr>
</table>
</div>
<div class="bottom-line"><div></div></div>
<script type="text/javascript">
var menu_count = parseInt("{:count($rslist)}");
function change_this(key,url)
{
	if(menu_count<1)
	{
		return false;
	}
	var keyMenu = "menu_"+key;
	for(var i=0;i<menu_count;i++)
	{
		var tmpMenu = "menu_"+i;
		getid(tmpMenu).className = i == key ? "menuh" : "menub";
	}
	//执行这个URL
	if(url && url != "undefined")
	{
		window.parent.frames["frame_left"].location.href = url;
	}
}
//退出
function logout()
{
	window.parent.location.href = "{:site_url('login,logout')}";
}
function gohome()
{
	window.open("{:HOME_WWW}");
	return true;
}
function clear_cache()
{
	var url = base_file + "?"+base_func+"=clear_cache";
	var msg = get_ajax(url);
	if(msg == "ok")
	{
		alert("缓存已清空！");
		return true;
	}
	else
	{
		if(!msg) msg = "error";
		alert(msg);
		return false;
	}
}
function change_langid(val)
{
	window.parent.location.href = "{:site_url('index,chang_langid')}langid="+val;
}
//执行第一个JS
{:$rslist[0]["onclick"] ? $rslist[0]["onclick"] : ""}
</script>
<script type="text/javascript">
window.onerror = kill_error;
</script>
</body>
</html>